package com.ikun.service.impl;


import com.ikun.mapper.StoreClassMapper;
import com.ikun.pojo.StoreClass;
import com.ikun.service.StoreClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StoreClassServiceImpl implements StoreClassService {

    @Autowired  // 自动注入StoreClassMapper
    private
    StoreClassMapper storeClassMapper;

    /**
     *
     * 查询所有的店铺分类
     * @return
     */
    @Override
    public List<StoreClass> getAllStoreClass() {
        return storeClassMapper.getStoreClasses();
    }
}
